package com.ruige.service.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component
@Configuration
@PropertySource(value = {"classpath:/application.yml"}, encoding = "utf-8")
@ConfigurationProperties(prefix = "ruige-server")
public class RuigeServerConfig {
    public String ip;
    public String port;
    public String service_name;
    public List<String> server_list;
    public String goreka_address;
    public String type;//服务类型

}
